//
//  CNServiceInfo.h
//  CarNote
//
//  Created by linshili on 13-9-17.
//  Copyright (c) 2013年 linshili. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface CNServiceInfo : NSObject

@property (nonatomic) NSUInteger createTimestamp;
@property (nonatomic) NSInteger odometer;
@property (nonatomic, strong) NSMutableArray *services;
@property (nonatomic, strong) NSString *memo;

+ (NSArray *)serviceConstraints;

- (void)servicesFromJsonString:(NSString *)jsonString;
- (NSString *)jsonStringFromServices;

// serviceTypeIndexf: ServiceTypes.plist 中定义的service的索引，代表这个service的类型
- (void)addService:(NSInteger)serviceTypeIndex;
- (void)deleteService:(NSInteger)serviceTypeIndex;

@end
